<?php
include ("./src/jpgraph.php");
include ("./src/jpgraph_bar.php");
//$datax=$x_arr;
//$datay=$y_arr;
$datax=array("Cl. POLYPLACOPHORA (= Amphineura)","Cl. SCAPHOPODA","Cl. GASTROPODA","Cl. GASTROPODA Subcl. OPISTHOBRANCHIA","Cl. CEPHALOPODA","Cl. BIVALVIA");

$datay=array("12","2","746","68","12","462");

$graph = new Graph(800,450,"auto");    
$graph->SetScale("textlin");
$graph->SetShadow();
$graph->img->SetMargin(40,30,20,140);
$bplot = new BarPlot($datay);

$bplot->SetFillColor('orange');
$bplot->value->SetFormat('%d');

$bplot->value->Show();
$graph->Add($bplot);

$graph->title->Set("Class - # of Genera bar graph in Ph. MOLLUSCA in Neogene period");
$graph->xaxis->title->Set("Class Names");
$graph->yaxis->title->Set("Number of Genera");
$graph->xaxis->SetTickLabels($datax);
$graph->xaxis->SetLabelAngle(45);
$graph->xaxis->title->SetMargin(90);
$graph->title->SetFont(FF_FONT1,FS_BOLD);
$graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->xaxis->SetFont(FF_ARIAL,FS_NORMAL,6);
$graph->Stroke();
?>